﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000369 RID: 873
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CustomSaveData : IMessage<CustomSaveData>, IMessage, IEquatable<CustomSaveData>, IDeepCloneable<CustomSaveData>, IBufferMessage
	{
		// Token: 0x17000B50 RID: 2896
		// (get) Token: 0x06002734 RID: 10036 RVA: 0x0006DE30 File Offset: 0x0006C030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CustomSaveData> Parser
		{
			get
			{
				return CustomSaveData._parser;
			}
		}

		// Token: 0x17000B51 RID: 2897
		// (get) Token: 0x06002735 RID: 10037 RVA: 0x0006DE37 File Offset: 0x0006C037
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CustomSaveDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B52 RID: 2898
		// (get) Token: 0x06002736 RID: 10038 RVA: 0x0006DE49 File Offset: 0x0006C049
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CustomSaveData.Descriptor;
			}
		}

		// Token: 0x06002737 RID: 10039 RVA: 0x0006DE50 File Offset: 0x0006C050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CustomSaveData()
		{
		}

		// Token: 0x06002738 RID: 10040 RVA: 0x0006DE63 File Offset: 0x0006C063
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CustomSaveData(CustomSaveData other) : this()
		{
			this.saveData_ = other.saveData_;
			this.groupId_ = other.groupId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002739 RID: 10041 RVA: 0x0006DE94 File Offset: 0x0006C094
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CustomSaveData Clone()
		{
			return new CustomSaveData(this);
		}

		// Token: 0x17000B53 RID: 2899
		// (get) Token: 0x0600273A RID: 10042 RVA: 0x0006DE9C File Offset: 0x0006C09C
		// (set) Token: 0x0600273B RID: 10043 RVA: 0x0006DEA4 File Offset: 0x0006C0A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string SaveData
		{
			get
			{
				return this.saveData_;
			}
			set
			{
				this.saveData_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17000B54 RID: 2900
		// (get) Token: 0x0600273C RID: 10044 RVA: 0x0006DEB7 File Offset: 0x0006C0B7
		// (set) Token: 0x0600273D RID: 10045 RVA: 0x0006DEBF File Offset: 0x0006C0BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x0600273E RID: 10046 RVA: 0x0006DEC8 File Offset: 0x0006C0C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CustomSaveData);
		}

		// Token: 0x0600273F RID: 10047 RVA: 0x0006DED8 File Offset: 0x0006C0D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CustomSaveData other)
		{
			return other != null && (other == this || (!(this.SaveData != other.SaveData) && this.GroupId == other.GroupId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002740 RID: 10048 RVA: 0x0006DF28 File Offset: 0x0006C128
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SaveData.Length != 0)
			{
				num ^= this.SaveData.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002741 RID: 10049 RVA: 0x0006DF82 File Offset: 0x0006C182
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002742 RID: 10050 RVA: 0x0006DF8A File Offset: 0x0006C18A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002743 RID: 10051 RVA: 0x0006DF94 File Offset: 0x0006C194
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.GroupId);
			}
			if (this.SaveData.Length != 0)
			{
				output.WriteRawTag(66);
				output.WriteString(this.SaveData);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002744 RID: 10052 RVA: 0x0006DFF4 File Offset: 0x0006C1F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SaveData.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.SaveData);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002745 RID: 10053 RVA: 0x0006E050 File Offset: 0x0006C250
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CustomSaveData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SaveData.Length != 0)
			{
				this.SaveData = other.SaveData;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002746 RID: 10054 RVA: 0x0006E0A5 File Offset: 0x0006C2A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002747 RID: 10055 RVA: 0x0006E0B0 File Offset: 0x0006C2B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 66U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SaveData = input.ReadString();
					}
				}
				else
				{
					this.GroupId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000FB9 RID: 4025
		private static readonly MessageParser<CustomSaveData> _parser = new MessageParser<CustomSaveData>(() => new CustomSaveData());

		// Token: 0x04000FBA RID: 4026
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000FBB RID: 4027
		public const int SaveDataFieldNumber = 8;

		// Token: 0x04000FBC RID: 4028
		private string saveData_ = "";

		// Token: 0x04000FBD RID: 4029
		public const int GroupIdFieldNumber = 7;

		// Token: 0x04000FBE RID: 4030
		private uint groupId_;
	}
}
